package net.sx.minemodule.mvp.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator 可爱的路人 on 2019/7/5.
 * Email:513421345@qq.com
 * @deprecated not use 2019/07/20
 */
public class AfterDetailBean implements Serializable {

    /**
     * id : 1
     * orderSn : 2019060101105503101
     * returnApplySn : 2019060766654777101
     * status : 0
     * productId : 11
     * productName : Apple iPhone XS Max (A2104) 移动联通电信4G手机 双卡双待
     * attrs : [{"attrName":"颜色","attrValue":"深空灰色"},{"attrName":"内存","attrValue":"512GB"}]
     * num : 1
     * returnPrice : 50.3
     * returnPoint : 100
     * commission : 1.37
     * applyNum : 1
     * applyTime : 2019-07-05T09:19:44.084+0000
     */

    private int id;
    private String orderSn;
    private String returnApplySn;
    private int status;
    private int productId;
    private String productName;
    private int num;
    private BigDecimal returnPrice;
    private int returnPoint;
    private BigDecimal commission;
    private int applyNum;
    private String applyTime;
    private List<AttrsBean> attrs;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getReturnApplySn() {
        return returnApplySn;
    }

    public void setReturnApplySn(String returnApplySn) {
        this.returnApplySn = returnApplySn;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public BigDecimal getReturnPrice() {
        if (returnPrice != null) {
            return returnPrice.setScale(2, BigDecimal.ROUND_HALF_UP);
        }
        return returnPrice;
    }

    public void setReturnPrice(BigDecimal returnPrice) {
        this.returnPrice = returnPrice;
    }

    public int getReturnPoint() {
        return returnPoint;
    }

    public void setReturnPoint(int returnPoint) {
        this.returnPoint = returnPoint;
    }

    public BigDecimal getCommission() {
        if (commission != null) {
            return commission.setScale(2, BigDecimal.ROUND_HALF_UP);
        }
        return commission;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }

    public int getApplyNum() {
        return applyNum;
    }

    public void setApplyNum(int applyNum) {
        this.applyNum = applyNum;
    }

    public String getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(String applyTime) {
        this.applyTime = applyTime;
    }

    public List<AttrsBean> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<AttrsBean> attrs) {
        this.attrs = attrs;
    }

    public static class AttrsBean {
        /**
         * attrName : 颜色
         * attrValue : 深空灰色
         */

        private String attrName;
        private String attrValue;

        public String getAttrName() {
            return attrName;
        }

        public void setAttrName(String attrName) {
            this.attrName = attrName;
        }

        public String getAttrValue() {
            return attrValue;
        }

        public void setAttrValue(String attrValue) {
            this.attrValue = attrValue;
        }
    }
}
